const routes = [
    {
        id: 1,
        path: '/',
        name: "边缘平台",
        component: () => import('@/views/main'),
        redirect: '/dashboard',
        children: [
            {
                id: 11,
                path: '/dashboard',
                name: "主页",
                component: () => import('@/views/dashboard')
            },
            {
                id: 111,
                path: '/system',
                name: "系统设置",
                component: () => import('@/components/empty-route-view'),
                redirect: '/menu',
                children: [
                    {
                        id: 1111,
                        path: '/menu',
                        name: "菜单管理",
                        component: () => import('@/views/menu')
                    },
                    {
                        id: 1112,
                        path: '/role',
                        name: "角色管理",
                        component: () => import('@/views/role')
                    },
                    {
                        id: 1113,
                        path: '/user',
                        name: "用户管理",
                        component: () => import('@/views/user')
                    }
                ]
            }
        ]
    },
    {
        id: 2,
        path: '/login',
        name: "",
        component: () => import('@/views/system/login')
    },
    {
        id: 3,
        path: '/register',
        name: "",
        component: () => import('@/views/system/register')
    },
    {
        id: 4,
        path: '/retrievepwd',
        name: "",
        component: () => import('@/views/system/retrievepwd')
    },
    {
        id: 5,
        path: '/401',
        name: "",
        component: () => import('@/views/system/401')
    },
    {
        id: 6,
        path: '/404',
        component: () => import('@/views/system/404')
    },
    {
        id: 7,
        path: '/500',
        name: "",
        component: () => import('@/views/system/500')
    }
];
export default routes;